package com.xx.service;

import com.xx.dao.StudentDao;
import com.xx.entity.Student;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author 许欣
 * 时间：2022/5/3 10:35
 * 描述：
 */
@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> findAll() {
        return studentDao.findAll();
    }
    @Override
    public Student findById(Integer sid) {
        return studentDao.findById(sid);
    }
    @Override
    public int update(Student student) {
        return studentDao.update(student);
    }
    @Override
    public int del(int sid) {
        return studentDao.del(sid);
    }

}
